// const http = uni.$uv.http

/**
 * 首页 - 登录注册验签
 */
export const checkSign = (params = {}) => {
	return uni.$uv.http.post('/api/front/checkSign', {
		params: params
	})
}

/**
 * 绑定邀请
 */
export const bind = (params) => {
	return http.post('/api/front/bind', params)
}

/**
 * 首页 - 首页封装数据查询
 */
export const getHome = (params = {}) => {
	return uni.$uv.http.post('/api/front/home', {
		params: params
	})
}

/**
 * 首页 - 首页 Banner 信息
 */
export const getBanner = (params = {}) => {
	return uni.$uv.http.post('/api/front/banner', {
		params: params
	})
}

/**
 * 支持国家/地区查询
 */
export const getCountry = (params = {}) => {
	return uni.$uv.http.post('/api/front/country', {
		params: params
	})
}


/**
 * 支持的城市查询
 */
export const getArea = (params = {}) => {
	return uni.$uv.http.post('/api/front/area', {
		params: params
	})
}

/**
 * 支持类型和子类型查询
 */
export const getClassify = (params = {}) => {
	return uni.$uv.http.post('/api/front/classify', {
		params: params
	})
}

/**
 * 资源市场查询-分页
 */
export const getTeams = (params = {}) => {
	return uni.$uv.http.post('/api/front/teams', {
		params: params,
	})
}

/**
 * 公司/团队详情
 */
export const getTeam = (params = {}) => {
	return uni.$uv.http.post('/api/front/team/' + params.id, {
		params: {}
	})
}

/**
 * 个人主页数据详情
 */
export const getUserInfo = (params = {}) => {
	return uni.$uv.http.post('/api/front/user/info/' + params.id, {
		params: {}
	})
}

/**
 * 首页任务查询
 */
export const getHomeProject = (params = {}) => {
	return uni.$uv.http.post('/api/front/project/home', {
		params: params
	})
}

/**
 * 任务列表查询-分页
 */
export const getProjectList = (params = {}) => {
	return uni.$uv.http.post('/api/front/project/list', {
		params: params
	})
}

/**
 * 任务详情查询
 */
export const getProject = (params = {}) => {
	return uni.$uv.http.post('/api/front/project/' + params.id, {
		params: {}
	})
}

/**
 * 我发布的任务列表
 */
export const getProjectPublish = (params = {}) => {
	return uni.$uv.http.post('/api/front/project/publish', {
		params: params
	})
}

/**
 * 查询项目报名人选
 */
export const getApplication = (params = {}) => {
	return uni.$uv.http.post('/api/front/application/list', {
		params: params
	})
}

/**
 * 报名
 */
export const getApplicationPass = (params = {}) => {
	return uni.$uv.http.post('/api/front/application/pass', {
		params: params
	})
}

/**
 * 报名
 */
export const progressDetail = (params = {}) => {
	return uni.$uv.http.post('/api/front/progress/detail', {
		params: params
	})
}

/**
 * 我接收的任务列表
 */
export const getProjectReceive = (params = {}) => {
	return uni.$uv.http.post('/api/front/project/receive', {
		params: params
	})
}

/**
 * 个人信息
 */
export const getUserCenter = (params = {}) => {
	return uni.$uv.http.post('/api/front/user/center', {
		params: {}
	})
}

/**
 * nft 列表
 */
export const getNftList = (params = {}) => {
	return uni.$uv.http.post('/api/front/nft/list', {
		params: params
	})
}

/**
 * nft 列表
 */
export const nftMint = (params = {}) => {
	return uni.$uv.http.post('/api/front/nft/mint', {
		params: params
	})
}

/**
 * 发布任务第一步，基础信息
 */
export const publishTaskBaseInfoApi = (params = {}) => {
	return uni.$uv.http.post('/api/front/project/create/1', {
		params: params
	})
}

/**
 * 发布任务第二步，任务金额
 */
export const publishTaskAmountInfoApi = (params = {}) => {
	return uni.$uv.http.post('/api/front/project/create/2', {
		params: params
	})
}

/**
 * 发布任务第三步, 支付
 */
export const projectPay = (params = {}) => {
	return uni.$uv.http.post('/api/front/create/pay', {
		params: params
	})
}

/**
 * 报名
 */
export const projectOrder = (params = {}) => {
	return uni.$uv.http.post('/api/front/project/order', {
		params: params
	})
}

/**
 * 分期确认
 */
export const planSubmit = (params = {}) => {
	return uni.$uv.http.post('/api/front/plan/submit', {
		params: params
	})
}

/**
 * 分期支付
 */
export const planPay = (params = {}) => {
	return uni.$uv.http.post('/api/front/plan/pay', {
		params: params
	})
}

/**
 * 编辑个人资料
 */
export const editUserApi = (params = {}) => {
	return uni.$uv.http.post('/api/front/edit/user', {
		params: params
	})
}

/**
 * 编辑公司团队
 */
export const editTeamApi = (params = {}) => {
	return uni.$uv.http.post('/api/front/edit/company', {
		params: params
	})
}

/**
 * 获取余额
 */
export const getBalance = (params = {}) => {
	return uni.$uv.http.post('/api/front/balance', {
		params: params
	})
}

/**
 * 任务提交
 */
export const orderTask = (params = {}) => {
	return uni.$uv.http.post('/api/front/order/task', {
		params: params
	})
}




